<?php 
	require_once('connect.php');
	$id = $_GET['id'];
	$sql = "select * from article where id=$id";
	$query = mysql_query($sql);
	if($query&&mysql_num_rows($query)){
		$row = mysql_fetch_assoc($query);
	}else{
		echo "这篇文章不存在";
		exit;
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
a{ }
.aaa{ width:1000px; margin: 0 auto; height:500px;}
.top{ width:100%; background:#FFC; height:100px; border-bottom:#333 solid 1px;}
.left{ height:400px; width:699px; background:#FFC; float:left; border-right:#333 solid 1px;}
.right{ height:400px; width:300px; float:left; background:#CFF; }
.top h2{ font-size:30px; text-align:center; line-height:100px;}
.list{ margin-top:20px; margin-left:40px;}
.list ul{ list-style:none;}
.list ul li{ line-height:50px; }
.td{ height:50px; width:100px;}
</style>
</head>

<body>

<div class="aaa">
	<!--/*头部*/-->
	<div class="top"><h2>详细页</h2></div>
    
    <!--中间-->
    	<div>
		
    	<div class="left">
        	<div class="list">
           
            	<div  style="width:500px; margin-left:30px; border-bottom:1px solid #0F9;">
                			<p><span  style="font-size:25px;"><?php echo $row['title'] ?></span>  <span style=" margin-left:30px;">作者：<?php echo $row['author']?></span></p>
          
                  
                    <p><?php echo $row['content'] ?></p>
                  

                </div>
              
            </div>
        </div>
        <div class="right" >
      <p style="margin-left:30px;">search</p>
      <p style="margin-left:30px;"><input type="text"  /><input type="submit" value="search" /></p>
        </div>
    </div>
    
   
    <div></div>
</div>

</body>
</html>